package cc.marcio.systems.seven.model;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;

@Embeddable
public class PlanetId implements Serializable {

	private static final long serialVersionUID = -7842738137585873270L;

	@ManyToOne
	private Round round;

	@ManyToOne
	private User user;

	public PlanetId() { }
	
	public PlanetId(User user) {
		this();
		this.user = user;
	}
	
	public PlanetId(Round round) {
		this();
		this.round = round;
	}
	
	public PlanetId(User user, Round round) {
		this();
		this.user = user;
		this.round = round;
	}
	
	public Round getRound() {
		return round;
	}

	public void setRound(Round round) {
		this.round = round;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}	
}
